Skip to content

Fix #209: Add regression test #5785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 24, 2019
Merged

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Jan 23, 2019

Now the copy method of a case class can be overridden with default parameters.

@Blaisorblade
Copy link
Contributor

Jason wrote:

The copy method subverts attempts to use private constructors for case
classes so being able to disable its generation is a useful idiom.

Can we test that too?

Copy link
Contributor

@Blaisorblade Blaisorblade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensure any conflicting override of copy disables the default one? (As much as Scalac?) Ones without defaults, with private, etc seem good testcases.

@smarter smarter removed their assignment Jan 24, 2019
@nicolasstucki nicolasstucki merged commit a5cca66 into scala:master Jan 24, 2019
@Blaisorblade Blaisorblade deleted the fix-#209 branch January 24, 2019 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants